<template>
	<view class="detailsPage inspectionRecord customTitleBar" :style="{borderTopWidth:statusBarHeight}">
		<view class="custom-status-bar" :style="{backgroundColor: customTitleBarBg,height:statusBarHeight}"></view>
		<view class="custom-nav-bar" :style="{top:statusBarHeight,backgroundColor: customTitleBarBg,}">
			<text class="title-green">搜索</text>
		</view>
		<view class="gap"></view>
		<view class="container-wrap">
			<view class="container list">
				<view class="list-item" @click="toInquirySummary(item.orderNo,item.status)" v-for="(item, index) in yhBingliInfoVOs" :key="index">
					<view class="title">查询小结（{{item.orderNo}}）</view>
					<view class="column"><text class="read-num">诊断时间</text><text v-if="item.status==1">待支付</text>
					<text v-if="item.status==2">已支付</text>
					<text>{{item.biliTime}}</text></view>
				</view>
			</view>
		</view>
		<!-- 底部导航s -->
		<view class="menu-bar">
			<view class="menu-bar-item" @click="toHome"><view class="icon icon-home"></view><text>首页</text></view>
			<view class="menu-bar-item" @click="toPersonalCenter"><view class="icon icon-me"></view><text>我的</text></view>
		</view>
		<!-- 底部导航s -->
	</view>
</template>

<script>
	var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'
	import { getbingliInfoList} from '@/common/api.js';
	export default {
		data() {
			return {
				customTitleBarBg: 'rgba(250,250,250,1)',
				statusBarHeight: statusBarHeight,
				searchInput: '',
				yhBingliInfoVOs:[]
			}
		},onShow() {
			this.getbingliInfoList();
		},
		methods: {
			getbingliInfoList(){
				let req={};
				getbingliInfoList(req).then(data => {
					this.yhBingliInfoVOs=data;
					
					console.log(data)
				
				}).catch(() => {
				
				})
			},
			clearInput() {
				this.searchInput = '';
			},
			toInquirySummary(orderNo,status) {
				uni.redirectTo({
					url: '../inquirySummary/inquirySummary?orderNo='+orderNo+'&status='+status,
				});
			},
			toSearchResults() {
				uni.redirectTo({
					url: '../searchResults/searchResults',
				});
			},
			toHome() {
				uni.redirectTo({
					url: '../index/index',
				});
			},
			toPersonalCenter() {
				uni.redirectTo({
					url: '../personalCenter/personalCenter',
				});
			},
			
		}
	}
</script>

<style>
	page{background-color: #fff;}
</style>